home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / wildcat / msi_net.zip / NODUPES.TXT < prev    next >
Text File  |  1993-03-01  |  3KB  |  94 lines

  1. Sysops: Preventing duplicate messages is YOUR responsibility.
  2. Re-exporting mail from crashed message bases puts a burden on the entire
  3. network, and adds needlessly to other sysops' long distance telephone
  4. bills.
  5.  
  6. Successful echomail sysops monitor their systems DAILY for potential
  7. problems, and take measures to protect the network should a
  8. configuration problem or system crash occur.
  9.  
  10. Here's a sample mailrun event batch file I've cooked up for WILDCAT
  11. sysops, that uses PostMaster from Dave Cody, and Dupmsg from Jim
  12. Metzler, along with, of course Robocomm and TNet.
  13.  
  14. This will keep sysops well informed about the progress of their mail
  15. runs and will alert them to problems before the NetGods have to become
  16. involved ... It should be all but impossible to be the source of a
  17. problem if you follow these instructions. Substitute your own sysop
  18. name, hub name and paths for the ones shown here, of course.
  19.  
  20. PCBoardies can use this too--there should be a set of utilities for
  21. PCBoard which function in the same way as TNet (try RNet or QNet);
  22. PostMaster, which takes text files and imports them to the message
  23. base (TXT2MSG for instance); and Dupmsg, which purges duplicate
  24. messages -- try PCBPack for this.
  25.  
  26. So, without further ado, here's a sample net mailrun batch file:
  27. ---- CUT HERE ----
  28. C:
  29. CD \WC30
  30.  
  31. :OK, let's clean out some dupes!
  32. DUPMSG
  33.  
  34. :Now let's export some mail.
  35. TNET EXPORT MUSTANG
  36.  
  37. :Mail's exported, let's send it to HQ
  38. CD \ROBO
  39.  
  40. :Rename our old QWK packets before we start
  41. IF EXIST MUSTANG.QW2 DEL MUSTANG.QW2
  42. IF EXIST MUSTANG.QW1 RENAME MUSTANG.QW1 MUSTANG.QW2
  43. IF EXIST MUSTANG.QWK RENAME MUSTANG.QWK MUSTANG.QW1
  44.  
  45. :Let's backup the Robocomm log file and pick up the mail using Robocomm
  46. IF EXIST ROBOCOMM.LOG TYPE ROBOCOMM.LOG >>ROBOLOG.OLD
  47. DEL ROBOCOMM.LOG
  48. ROBOCOMM /R /A NIGHTLY
  49.  
  50. CD \WC30
  51.  
  52. :now that Robo's finished, let's mail ourselves the log. Set the
  53. :log style in Robocomm to 'Normal'
  54.  
  55. POSTMSTR /I:C:\ROBO\ROBOCOMM.LOG /C:0 /T:GWEN BARNES /F:ROBO /S:ROBO LOG
  56.  
  57. :now we import the mail and backup the TNET log file
  58. IF EXIST ROBO\MUSTANG.QWK TNET IMPORT MUSTANG
  59. IF EXIST TNET.LOG TYPE TNET.LOG >>TNETLOG.OLD
  60.  
  61. :now we mail ourselves the TNET log to see what we imported
  62. POSTMSTR /I:C:\WC30\TNET.LOG /C:0 /T:GWEN BARNES /F:TNET /S:TNET LOG
  63. DEL TNET.LOG
  64.  
  65. :Now let's kill any dupe messages that might have come from HQ becase
  66. :someone else forgot to check for dupes first!
  67. CD \WC30
  68. IF EXIST DUPMSG.LOG TYPE DUPMSG.LOG >>DUPLOG.OLD
  69. DUPMSG
  70.  
  71. :And let's mail ourselves the DUPMSG log to see how it went
  72. POSTMSTR /I:C:\WC30\DUPMSG.LOG /C:0 /T:GWEN BARNES /F:DUPMSG /S:DUPMSG
  73. DEL DUPMSG.LOG
  74.  
  75. :And the Wildcat error log, just in case something went wrong that we
  76. :need to fix (such as a trashed conference) with WCREPAIR
  77. IF EXIST ERROR.LOG TYPE ERROR.LOG >>ERRORLOG.OLD
  78. POSTMSTR /I:C:\WC30\ERROR.LOG C:/0 /T:GWEN BARNES /F:WILDCAT /S:ERRORLOG
  79. DEL ERROR.LOG
  80.  
  81. :Likewise for TNET's error log
  82. IF EXIST TNET.ERR TYPE TNET.ERR >>TNETERR.OLD
  83. POSTMSTR /I:C:\WC30\TNET.ERR C:/0 /T:GWEN BARNES /F:TNET /S:TNET.ERR
  84. DEL TNET.ERR
  85.  
  86. :And Tomcat's error log, just for good measure
  87. IF EXIST TOMCAT.ERR TYPE TOMCAT.ERR >>TCERROR.OLD
  88. POSTMSTR /I:C:\WC30\TOMCAT.ERR C:/0 /T:GWEN BARNES /F:TOMCAT /S:TCERROR
  89.  
  90. :Then we bring the BBS up again. EXIT if you shelled, CAT if you
  91. terminated.
  92.  
  93. ---CUT HERE---
  94.